package com.park.web.controller;

import com.github.pagehelper.PageInfo;
import com.park.web.base.baseOperation.BaseController;
import com.park.web.core.wrapper.WrapMapper;
import com.park.web.core.wrapper.Wrapper;
import com.park.web.model.dto.basSystemManageDto;
import com.park.web.model.dto.pbaOwnerVehicleInfoDto;
import com.park.web.model.vo.pbaOwnerVehicleInfoVo;
import com.park.web.service.basSystemManageService;
import com.park.web.service.pbaOwnerVehicleInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(value = "WEB - pbaOwnerVehicleInfoController", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@RequestMapping(value = "pbaOwnerVehicleInfo", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class pbaOwnerVehicleInfoController extends BaseController {

    @Autowired
    pbaOwnerVehicleInfoService ipbaOwnerVehicleInfoService;

    @GetMapping("/queryWithPage/{orgCode}")
    @ApiOperation(value = "查询系统模块信息", notes = "查询系统模块信息")
    public Wrapper<PageInfo<pbaOwnerVehicleInfoVo>> queryMenuList(@PathVariable("orgCode") String orgCode, pbaOwnerVehicleInfoDto entity) {
        if (orgCode.equals("ORZ20170321172955312"))
            entity.setOrgCode(null);
        var list = ipbaOwnerVehicleInfoService.queryWithPage(entity);
        return WrapMapper.okWithoutMessage(list);
    }
}
